﻿@{
    ViewBag.Title = "Voucher";
    Layout = "~/Views/Shared/_AdminLayout.cshtml";
}

<html>
<head>
    <script type="text/javascript">
        function saveAmount() {
            var at = $('#amount').numberbox('getValue');
            if (at == '') {
                alert("Please enter valid numberic!");
                return false;
            }
            return true;
        }
    </script>
</head>
<body>
    <div class="easyui-panel" title="Vourcher" style="height: 500px" iconCls="icon-ok">
        <div style="padding: 10px 0 10px 60px">
            @using (Html.BeginForm("Prepaid", "PayPal")) {
                <table>
                    <tr>
                        <td>Current Balance:</td>
                        <td><label style="font-weight:bold">$@CashOrCard.Helper.Common.CurrentUser.Amount</label></td>
                    </tr>
                    <tr>
                        <td>Amount:</td>
                        <td>
                            <input type="text" maxlength="5" id="amount" name="amount" class="easyui-numberbox" data-options="min:0,precision:2,required:true">
                    </tr>
                    <tr>
                        <td colspan="2" style="text-align:center;padding-top: 10px">
                            <input type="image" onclick="saveAmount();" src="https://www.paypalobjects.com/en_GB/HK/i/btn/btn_buynowCC_LG_wCUP.gif" border="0" name="submit" alt="PayPal - The safer, easier way to pay online.">
                        </td>
                    </tr>
                </table>
            }
        </div>
    </div>
</body>
</html>